//
//  TimeView.h
//  XDBaseFrameWork
//
//  Created by XD-XY on 9/23/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TimeViewDelegate <NSObject>

-(void)chooseTimeWithDay:(NSString *)mDay hour:(NSString *)mHour second:(NSString *)mSecond;

@end

@interface TimeView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>
{
    int timeType;
    NSString * persentTime;
}
@property(nonatomic,assign)id<TimeViewDelegate>delegate;

@property(nonatomic,strong)UILabel * titleLB;
@property(nonatomic,strong)UIPickerView * pickerView;
@property(nonatomic,strong)UIButton * sureBtn;
@property(nonatomic,strong)UIView * bgView;
@property(nonatomic,strong)UIView * pickeBgView;

@property(nonatomic,strong)NSMutableArray * dayArray;      //天数组
@property(nonatomic,strong)NSArray * hourArray;      //时数组
@property(nonatomic,strong)NSArray * secondArray;    //分数组

@property(nonatomic,assign)int dayNumber;
@property(nonatomic,assign)int hourNumber;
@property(nonatomic,assign)int secondNumber;

@property(nonatomic,strong)NSMutableArray * userDateArray;
@property(nonatomic,strong)NSMutableArray * yBuseDateArray;

-(void)setTheViewHidden;

-(void)setTheViewShow;

-(void)setSouceTime:(int)type;

@end
